<link rel="stylesheet" href="../addons/jy_shopbaoxiu/resource/css/style.css" />
<style type="text/css">
	.icon1 {
		width: .8rem; height: .8rem;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
.fui-block-group.new:after{content: " "; position: absolute; left: 0.5rem; right: 0.5rem; top: 50%; height: 1px; border-top: 1px solid #ebebeb; color: #D9D9D9; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleY(0.5); -ms-transform: scaleY(0.5); transform: scaleY(0.5);}
.fui-block-group.new:before{content: " "; position: absolute; top: 0.5rem; bottom: 0.5rem; left: 50%; width: 1px; border-left: 1px solid #ebebeb; color: #D9D9D9; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleX(0.5); -ms-transform: scaleX(0.5); transform: scaleX(0.5);z-index: 2}
.fui-block-group .fui-block-child.new{display: -webkit-box;  display: -webkit-flex;  display: -ms-flexbox;  display: flex;  -webkit-box-align: center;-webkit-align-items: center;  -ms-flex-align: center;  align-items: center;-webkit-box-pack: start; -ms-flex-pack: start; -webkit-justify-content: flex-start; justify-content: flex-start;padding-left: .6rem; height: 3.7rem }
/*.fui-block-group .fui-block-child .text{height: auto;line-height: normal;margin-left: .6rem;font-size: .6rem;color: #999;text-align: left}*/
.fui-block-group .fui-block-child .text.new{height: auto;line-height: normal;margin-left: .6rem;font-size: .6rem;color: #999;text-align: left}
.fui-cell-group .fui-cell .fui-cell-icon .text-yellow{color: red}
.fui-block-group .fui-block-child .title{height: auto;line-height: normal;font-size: .7rem;color: #000;text-align: center}
.fui-block-group .fui-block-child .text.new .title{text-align: left}
.fui-block-group .fui-block-child .text span{color: #999}
.fui-block-group .fui-block-child .icon{padding-top: 0;line-height: 2.7rem}
.fui-block-group .fui-block-child .icon i{font-size: 1.3rem}
.fui-block-group .fui-block-child.new:before{display: none}
.fui-block-group .fui-block-child.new:after{display: none}
</style>

<div class="fui-page fui-page-current page-commission-index ">
    <div class='fui-content member-page'>
	<div style="margin:0.5rem;">
					<div class="memlogo-area" style="background: red;margin-bottom:0.5rem">
						<div class="memlogo">
							<img ng-src="{{tomedia(pagedata.worker.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="name">{{pagedata.worker.nickname || '匿名'}}</div>
						<br>
						<div class="name">{{pagedata.worker.mobile || '无手机号'}} <span class="label label-warning">{{pagedata.worker.levelname}}</span></div>
						
						<div class="code">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('jy_poster/apibuild//plugin_name=jy_shopbaoxiu')" style="border: 1px solid #fff;color:#fff;"><i class="icon jinyunicon icon-erweima text-yellow"></i> 我的海报</div>
						</div>
						<div class="bot">
							<div class="jy-2">
							<h5>销售业绩(元)</h5>
							<h2 style="margin-top:0">{{pagedata.data.total_price || '0.00'}}</h2>
							</div>
							<div class="jy-2">
							<h5>销售经销(元)</h5>
							<h2 style="margin-top:0">{{pagedata.data.commission_money || '0.00'}}</h2>
							</div>
						</div>
					</div>
	</div>
	<div style="margin:0.5rem;">
	<div class="fui-cell-group">
			<div class="fui-cell"style="height: 2.85rem;">
				<div class="fui-cell-icon">
					<i class="icon jinyunicon icon-qrcode"></i>
				</div>
				<div class="fui-cell-text">我的员工码：{{pagedata.worker.id}}
				</div>
			</div>
		</div>
		<div class="fui-block-group col-2" style='overflow: hidden;'>
            <a class="fui-block-child new  external" href="javascript:;" ng-click="access_json('/store.order/')">
                <div class="icon " style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
                <div class="text new">
					<div class="title">下单量</div>
                    <div class=""><span>{{pagedata.data.order_num || 0}}</span> 单</div>
				</div>
            </a>
			<a class="fui-block-child new external" href="javascript:;" ng-click="access_json('/store.down/')">
                <div class="icon" style="color: #ff4357;"><i class="icon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">发展客户</div>
					<div class=""><span>{{pagedata.data.agent_num || 0}}</span> 人</div>
				</div>
            </a>
		</div>
		<div class="fui-cell-group">
			<div class="fui-cell"style="height: 2.85rem;" href="javascript:;" ng-click="access_json('/store.rank/')">
				<div class="fui-cell-icon">
					<i class="icon icon-paihao0"></i>
				</div>
				<div class="fui-cell-text">员工排行榜
				</div>
				<div class="fui-cell-remark">
				<span class="red">{{pagedata.data.workernum || 0}}</span> 个员工
				</div>
			</div>
			<div class="fui-cell"style="height: 2.85rem;" href="javascript:;" ng-click="access_json('/store.grouprank/')">
				<div class="fui-cell-icon">
					<i class="icon icon-paihao0"></i>
				</div>
				<div class="fui-cell-text">员工组排行榜
				</div>
				<div class="fui-cell-remark">
				<span class="red">{{pagedata.data.workergroupnum || 0}}</span> 个组
				</div>
			</div>
		</div>
		<div class="fixed-title" style="margin:0.5rem 0">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">客户下单明细</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
		</div>
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.type==0}" class="external" href="javascript:;" ng-click="pagedata.params.type=0;tool.get_list('jy_shopbaoxiu/store.home/getlist/',true)">待支付</a>
			<a ng-class="{'active':pagedata.params.type==1}" class="external" href="javascript:;" ng-click="pagedata.params.type=1;tool.get_list('jy_shopbaoxiu/store.home/getlist/',true)">已支付</a>
		</div>
		<div class='fui-content-inner' ng-if="!pagedata.list || pagedata.list.length==0">
			<div class='content-empty'>
				<i class='icon icon-lights'></i><br/>暂时没有业绩
			</div>
			<div class="fui-according-group" id="container"></div>
		</div>
		<div ng-repeat="item in pagedata.list" class='lynn_order_item'>
			<div class="external">
				<div class='lynn_order_title'>
					订单号: {{item.ordersn}}
					<span class="order_status" style="float:right;"> {{item.statustitle}} </span>
				</div>
				<div ng-repeat="m in item.merchs">
						<a ng-if="m.id" href="javascript:;" data-nocache="true" ng-click="access_json('jy_weishop/merch//id='+m.id)">
							<div class="fui-list-group-title lineblock bold">
								<i class="icon jinyunicon icon-dianpu"></i> {{m.merchname || '多商户'}}
								<span class="status noremark" style="font-size:0.50rem" ><i class="icon jinyunicon icon-icon-test"></i></span>
							</div>
						</a>
						<a ng-if="!m.id" href="javascript:;" data-nocache="true" ng-click="access_json('jy_weishop/index/')">
							<div class="fui-list-group-title lineblock bold">
								<i class="icon jinyunicon icon-dianpu"></i> {{pagedata.shopset.store_title || '平台自营'}}
								<span class="status noremark" style="font-size:0.50rem" ><i class="icon jinyunicon icon-icon-test"></i></span>
							</div>
						</a>
						<a href="javascript:;" ng-repeat="g in m.goods" class="external" data-nocache="true" ng-click="access_json('jy_shopbaoxiu/order.detail//id='+item.id)">
							<div class="fui-list goods-list">
								<div class="fui-list-media" style="">
									<img class="" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{g.title}}</div>
									<div class="text" style="color:#f60;font-size:0.60rem">{{g.selespename || '无规格'}} x {{g.total || 1}} /{{g.unit ||'件'}}<span ng-if="g.weight!='0.00'"> ({{g.weight}}kg)</span></div>
									<div class="text"><i class="fui-tag fui-tag-red">{{item.buytypetitle}}</i></div>
									
								</div>
								<div class="fui-list-angle" style="width:auto">
									<div>￥<span class="marketprice syscolorred">{{g.price}}</span></div>
									<div class="subtitle" ng-if="pagedata.feemoney.isopen==1">{{pagedata.feemoney.tag ||'节省'}}￥{{g.feemoney || '0.00'}}</div>
								</div>
							</div>
						</a>
				</div>
				<div class='lynn_order_price'>
					<span class='status'>
						运费: <span class='text-danger'>¥{{item.dispatchprice || '0.00'}}</span>元, 共 <span class='text-danger'>1</span> 个商品
						总额: <span class='text-danger'>¥{{item.price}}</span>元
					</span>
					<span class='r-f'>{{item.createtime}}</span>
				</div>
			</div>
			<div class='lynn_order_bottom' style="height:auto">
				<span class="status">
					<a ng-if="item.teamid" class="external lynn_btn lynn_btn_danger" href="javascript:;" ng-click="access_json('jy_shopbaoxiu/teamdetail/detail/teamid='+item.teamid)">查看拼单详情</a>
				</span>
			</div>
		</div>
</div>
</div>
</div>
<div ng-include="sys_html('/store/_footer')"></div>
<script>
scope.tool.get_list('jy_shopbaoxiu/store.home/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_shopbaoxiu/store.home/getlist/');
}
</script>